

import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const pre = 'medical_';

export default {
  path: routePre + '/medical',
  name: 'medical',
  header: 'medical',
  meta: {
    title: '医疗',
    // 授权标识
    auth: ['admin-store-index'],
  },
  redirect: {
    name: `${pre}doctorList`,
  },
  component: LayoutMain,
  children: [
    {
      path: 'doctor_list',
      name: `${pre}doctorList`,
      meta: {
        title: '病种资料预约',
        auth: ['admin-medical-medicalDoctor-index'],
        keepAlive: true,
      },
      component: () => import('@/pages/medical/doctorList'),
    },
    {
      path: 'doctor/edit_appointment/:id?',
      name: `${pre}doctorAppointment`,
      meta: {
        title: '管理预约日期',
        auth: ['admin-medical-medicalDoctor-appointment'],
        keepAlive: true,
      },
      component: () => import('@/pages/medical/doctorAppointment'),
    },
    {
      path: 'disease_list',
      name: `${pre}diseaseList`,
      meta: {
        title: '病种列表',
        auth: ['admin-medical-medicalDisease-index'],
        keepAlive: true,
        activeMenu: routePre + '/medical/doctor_list',
      },
      component: () => import('@/pages/medical/diseaseList'),
    },

  ],
};
